package com.order.api.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "用户保存请求")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserSaveRequest {

    @ApiModelProperty(value = "用户ID,传为修改,不传为新增", example = "1")
    private Long id;

    @ApiModelProperty(value = "用户名称", required = true, example = "user1")
    private String name;

    @ApiModelProperty(value = "手机号", required = true, example = "138xxxxxxxx")
    private String phone;

    @ApiModelProperty(value="地址")
    private String address;

    @ApiModelProperty(value="年龄")
    private Integer age;

    @ApiModelProperty(value="性别（0：男，1：女）")
    private Integer gender;
}
